import React from 'react'
import { Button } from 'antd'

export default function NoFound(props) {
  const toIndex = ()=>{
    props.history.replace('/index')
  } 
  return (
    <div className='align-center'>
      <img className='mt60' alt='' src={require('./../../assets/2.webp')}/>
      <p className='color-c'>
        啊哦，网页走丢啦~
      </p>
      <div className='mt40'>
        <Button type="primary" onClick={toIndex}>回到首页</Button>
      </div>
    </div>
  )
}
